import request from '@/utils/request'
export function queryById(params,type) {
    return request({
        url: '/app/prod/queryById',
        method:'get',
        params:params,
        type:type
    })
}
export function save(data) {
    return request({
        url: '/app/prod/save',
        method:'post',
        data: data
    })
}

export function update(data) {
    return request({
        url: '/app/prod/update',
        method:'put',
        data: data
    })
}
export function del(params) {
    return request({
        url: '/app/prod/delete',
        method:'delete',
        params:params
    })
}


export function list(params,type) {
    return request({
        url: '/app/prod/list',
        method:'get',
        params:params,
        type:type
    })
}
export function prodVersave(data) {
    return request({
        url: '/app/prodVer/save',
        method:'post',
        data: data
    })
}
export function prodChange(params){
    return request({
        url:'/app/prod/prodChange',
        method:'put',
        params:params
    })
}
export function summarize(params){
    return request({
        url:'/app/prod/summarize',
        method:'get',
        params:params
    })
}